<?php

/*

Cheats (cheats.php)

*/

$rank_check = 1;
$page_title = "Code Blocks";
include "header.inc.php";

echo $openHTML;

if ($act == "check")
{
	$right = 0;

	if ($cb_1 == "fr9pl0") { $right ++; print "<font color=green>Code block 1 (fr9pl0) was correct!</font><br>"; }
	if ($cb_1 != "fr9pl0") { print "<font color=red>Code block 1 was wrong!</font><br>"; }

	if ($cb_2 == "t8m00r") { $right ++; print "<font color=green>Code block 2 (t8m00r) was correct!</font><br>"; }
	if ($cb_2 != "t8m00r") { print "<font color=red>Code block 2 was wrong!</font><br>"; }

	if ($cb_3 == "256890") { $right ++; print "<font color=green>Code block 3 (256890) was correct!</font><br>"; }
	if ($cb_3 != "256890") { print "<font color=red>Code block 3 was wrong!</font><br>"; }

	if ($cb_4 == "8kh236") { $right ++; print "<font color=green>Code block 4 (8kh236) was correct!</font><br>"; }
	if ($cb_4 != "8kh236") { print "<font color=red>Code block 4 was wrong!</font><br>"; }

	if ($cb_5 == "sdjhga") { $right ++; print "<font color=green>Code block 5 (sdjhga) was correct!</font><br>"; }
	if ($cb_5 != "sdjhga") { print "<font color=red>Code block 5 was wrong!</font><br>"; }

	if ($cb_6 == "34i0gl") { $right ++; print "<font color=green>Code block 6 (34i0gl) was correct!</font><br>"; }
	if ($cb_6 != "34i0gl") { print "<font color=red>Code block 6 was wrong!</font><br>"; }

	if ($cb_7 == "ho1xjw") { $right ++; print "<font color=green>Code block 7 (ho1xjw) was correct!</font><br>"; }
	if ($cb_7 != "ho1xjw") { print "<font color=red>Code block 7 was wrong!</font><br>"; }

	if ($cb_8 == "89vsli") { $right ++; print "<font color=green>Code block 8 (89vsli) was correct!</font><br>"; }
	if ($cb_8 != "89vsli") { print "<font color=red>Code block 8 was wrong!</font><br>"; }

	if ($cb_9 == "bjty75") { $right ++; print "<font color=green>Code block 9 (bjty75) was correct!</font><br>"; }
	if ($cb_9 != "bjty75") { print "<font color=red>Code block 9 was wrong!</font><br>"; }

	if ($cb_10 == "adcvbh") { $right ++; print "<font color=green>Code block 10 (adcvbh) was correct!</font><br>"; }
	if ($cb_10 != "adcvbh") { print "<font color=red>Code block 10 was wrong!</font><br>"; }

	if ($right == "10")
	{
		print "<p>You got all 10 correct, please copy and paste everything above this line and mail it to steve, you will receive your rank. Prizes will be awarded AFTER the contest is over (up to 10 days, be patient). Congratulations!</p>";
	}
}

ECHO <<<END

<form action=checkblock72.php?act=check method=post>
Code Block 1: <input type=text name=cb_1 size=6><Br>
Code Block 2: <input type=text name=cb_2 size=6><Br>
Code Block 3: <input type=text name=cb_3 size=6><Br>
Code Block 4: <input type=text name=cb_4 size=6><Br>
Code Block 5: <input type=text name=cb_5 size=6><Br>
Code Block 6: <input type=text name=cb_6 size=6><Br>
Code Block 7: <input type=text name=cb_7 size=6><Br>
Code Block 8: <input type=text name=cb_8 size=6><Br>
Code Block 9: <input type=text name=cb_9 size=6><Br>
Code Block 10: <input type=text name=cb_10 size=6><Br>
<input type=submit value="Check Code Blocks!">

END;

echo $closeHTML;

?>